<div id="banner"><img src="<?php echo $this->baseUrl; ?>/banner/cars.png" style="width: 100%;" />
    <div class="title"><?php echo $this->title; ?></div>
</div>

<div id="content2">
    <table class="content">
        <tr>
            <td>
                <h1>TOP 5</h1>
                <ul>
                    <?php foreach ($this->top5 as $movie) { ?>
                        <li><?php echo $movie["Title"]; ?> (<?php echo $movie["Rank"]; ?>)</li>
                    <?php } ?>

                </ul>
            </td>
            <td>
                <h1>Last Comments</h1>
                <ul>
                    <?php foreach ($this->lastComments as $comment) { ?>
                        <li><b><?php echo $comment["Login"]; ?></b> about <b><?php echo $comment["Title"]; ?></b> 
                            : <i>"<?php echo $comment["Comment"]; ?>"</i></li>
                    <?php } ?>
                </ul>
            </td>
        </tr>
    </table>
    <table class="content">
        <tr>
            <td>
                <h1>Today ...</h1>
            </td>
        </tr>
    </table>
       <?php $i = 0; foreach ($this->shows as $show) { ?>
    <table class="content">
        <tr>
        	<?php if($i%2 == 0) { ?>
        	<td>
                <h1><?php echo $show['Title']; ?></h1>
                <b>Hour: </b> <?php echo date("g\:i a", strtotime($show['Date'])); ?>
                <br /><b>Room: </b> <?php echo $show['Room_ID']; ?>
                <br /><a href="<?php echo $this->baseUrl; ?>/Movie/movie/id/<?php echo $show['Movie_ID']; ?>">More Info</a>      
            </td>
            <td style="width: 200px; vertical-align: middle;">
				<img src="<?php echo $this->baseUrl; ?>/posters/<?php echo $show['Poster']; ?>" style="max-height: 300px; max-width: 200px;"/>
            </td>
        	
        	<?php } else { ?>
        	
        	<td style="width: 200px; vertical-align: middle;">
				<img src="<?php echo $this->baseUrl; ?>/posters/<?php echo $show['Poster']; ?>" style="max-height: 300px; max-width: 200px;"/>
            </td>
            <td>
       		    <h1><?php echo $show['Title']; ?></h1>
                <b>Hour: </b> <?php echo date("g\:i a", strtotime($show['Date'])); ?>
                <br /><b>Room: </b> <?php echo $show['Room_ID']; ?>
                <br /><a href="<?php echo $this->baseUrl; ?>/Movie/movie/id/<?php echo $show['Movie_ID']; ?>">More Info</a>      
           </td>   
            	
        	<?php } ?>
        </tr>
    </table>
    <?php $i++; } ?>
</div>
